package dk.simonvogensen.itodo.shared.model;

import java.io.Serializable;

public class TagLine implements Serializable {
    private TagItem tag;
    private String text;

    public TagLine() {
    }

    public TagLine(TagItem tag, String text) {
        this.tag = tag;
        this.text = text;
    }

    public TagItem getTag() {
        return tag;
    }

    public String getText() {
        return text;
    }

    public void setDone() {
        tag.getTodoItem().setText(tag.getTodoItem().getText().replace(text, text.replace("  - ", "  d- ")));
    }
}
